package com.ads.tpgrupo4.domain.cpr.remito;

import java.util.Date;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;

import com.ads.tpgrupo4.domain.cpr.core.PersistentObject;

@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@DiscriminatorColumn(name="tipoRemito", discriminatorType=DiscriminatorType.STRING)
@MappedSuperclass
public abstract class Remito extends PersistentObject {

	private static final long serialVersionUID = 1L;

	protected Long numero;

	protected Date fechaEmision;

	public Remito() {
	}
	
	public Date getFechaEmision() {
		return fechaEmision;
	}

	public void setFechaEmision(Date fechaEmision) {
		this.fechaEmision = fechaEmision;
	}
	
	public Long getNumero() {
		return numero;
	}

	public void setNumero(Long numero) {
		this.numero = numero;
	}

}
